package o;

import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.os.Build.VERSION;
import android.util.Log;
import android.view.MenuItem;

public final class hm {
    public static MenuItem ˊ(MenuItem menuItem, hd hdVar) {
        if (menuItem instanceof gk) {
            return ((gk) menuItem).ˎ(hdVar);
        }
        Log.w("MenuItemCompat", "setActionProvider: item does not implement SupportMenuItem; ignoring");
        return menuItem;
    }

    public static void ॱ(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).ˎ(charSequence);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setContentDescription(charSequence);
        }
    }

    public static void ˋ(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).ˊ(charSequence);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setTooltipText(charSequence);
        }
    }

    public static void ˏ(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).setNumericShortcut(c, i);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setNumericShortcut(c, i);
        }
    }

    public static void ˊ(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).setAlphabeticShortcut(c, i);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setAlphabeticShortcut(c, i);
        }
    }

    public static void ˏ(MenuItem menuItem, ColorStateList colorStateList) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).setIconTintList(colorStateList);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setIconTintList(colorStateList);
        }
    }

    public static void ˎ(MenuItem menuItem, Mode mode) {
        if (menuItem instanceof gk) {
            ((gk) menuItem).setIconTintMode(mode);
        } else if (VERSION.SDK_INT >= 26) {
            menuItem.setIconTintMode(mode);
        }
    }
}
